﻿var items = document.querySelectorAll(".nav li")
console.log(items)
for (let i = 0; i < items.length; i++) {
    items[i].addEventListener('click', () => {
        console.log(i)
    })
}